home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / reboot.zip / REBOOT.DOC < prev   
Text File  |  1988-02-06  |  2KB  |  57 lines

  1. NAME
  2.      reboot - create file(s) and reboot utility
  3.  
  4. SYNTAX
  5.      reboot [ [/ | -] fc ] [ file ... ]
  6.  
  7. DESCRIPTION
  8.      REBOOT creates specified zero length file(s) and performs a reboot.
  9.  
  10.      The purpose is to allow conditional jumps in AUTOEXEC.BAT based on
  11.      the existence of the files.  For example, if the following code is
  12.      in AUTOEXEC.BAT:
  13.  
  14.         IF EXIST CLEAN GOTO NORES
  15.         :
  16.         DEL CLEAN
  17.         :
  18.         : invoke resident programs here
  19.         :
  20.         :NORES
  21.  
  22.      and the user entered "reboot c:\clean", the system would boot without
  23.      loading the resident programs.
  24.  
  25.      The list of files may be specified on the command line (the filenames
  26.      are to be separated by spaces).  If no files are specified on the
  27.      command line, the environment variable "REBOOT" is examined for the
  28.      list of files (again space separated).  If neither the command line nor
  29.      the environment specifies the list of files, a default filename "C:\CLEAN"
  30.      is used.
  31.  
  32.  
  33. COMMAND LINE OPTIONS
  34.      /f or -f    Create NO files prior to the reboot.
  35.  
  36.      /c or -c    Perform a COLD reboot.  The default is a WARM reboot, as if
  37.     the user had entered CNTL-ALT-DEL.  A COLD reboot is as if the system
  38.     has just been powered up or the reset switch used (for you IBM'ers,
  39.     that's the big red switch on the right side of the computer :-).
  40.  
  41. RESTRICTIONS
  42.      The command line options may not be included in the environment variable
  43.      REBOOT.
  44.  
  45.      When using SET to define REBOOT, take care NOT to include spaces around
  46.      the equal sign.  For example:
  47.  
  48.         SET REBOOT=C:\FOO C:\BAR
  49.  
  50.      is valid, however:
  51.  
  52.         SET REBOOT = C:\FOO C:\BAR
  53.  
  54.      sets a variable named "REBOOT " instead of the expected "REBOOT" and
  55.      the first file name will be taken as " C:\FOO" instead of the expected
  56.      "C:\FOO".
  57.